home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-in_the_mag-
/
reader_requests
/
scilab
/
man
/
man-part2
/
cat1
/
linsolve.1
< prev
next >
Wrap
Text File
|
1999-09-16
|
941b
|
67 lines
linsolve(1) Scilab Function linsolve(1)
NAME
linsolve - linear equation solver
CALLING SEQUENCE
[x0,kerA]=linsolve(A,b [,x0])
PARAMETERS
A : a na x ma real matrix (possibly sparse)
b : a na x 1 vector (same row dimension as A)
x0 : a real vector
kerA : a ma x k real matrix
DESCRIPTION
linsolve computes all the solutions to A*x+b=0.
x0 is a particular solution (if any) and kerA= nullspace of A. Any
x=x0+kerA*w with arbitrary w satisfies
A*x+b=0.
If compatible x0 is given on entry, x0 is returned. If not a compatible x0,
if any, is returned.
EXAMPLE
A=rand(5,3)*rand(3,8);
b=A*ones(8,1);[x,kerA]=linsolve(A,b);A*x+b //compatible b
b=ones(5,1);[x,kerA]=linsolve(A,b);A*x+b //uncompatible b
A=rand(5,5);[x,kerA]=linsolve(A,b), -inv(A)*b //x is unique
SEE ALSO
inv, pinv, colcomp, im_inv